package org.chnxi.study.design.factory.method;

public class FactoryMethodTest {

    public static void main(String[] args) {
        WulingCarFactory wulingCarFactory = new WulingCarFactory();
        ICar wuling = wulingCarFactory.getCar();
        wuling.name();

        TeslaCarFactory teslaCarFactory = new TeslaCarFactory();
        ICar tesla = teslaCarFactory.getCar();
        tesla.name();
    }

}
